.upload-section {
  width: 100%;
  border: 2px dashed #ccc;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  position: relative;

  &.drag-active {
    border-color: #1890ff;
    background-color: rgba(24, 144, 255, 0.05);
  }

  &.has-file {
    border-style: solid;
  }

  .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1; /* 恢复为1确保可点击 */
  }

  

  .upload-content {
    position: relative;
    z-index: 0;
  }

  .remove-btn {
    position: relative;
    z-index: 2; /* 高于input层级 */
    cursor: pointer;
  }

  .upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #666;
  }

  .upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
  }

  .upload-hint {
    font-size: 12px;
    color: #999;
  }

  .file-info {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
  }

  .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
  }

  .remove-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    transition: all 0.2s;

    &:hover {
      background-color: #ff4d4f;
      color: white;
      border-color: #ff4d4f;
    }
  }
}

.document-chunk{
  margin: 12px 0;
}

.chunk-header{
  font-weight: bold;
}

/* 处理状态美化 */
.processing-status {
  padding: 12px 20px;
  background-color: #f0f9ff;
  color: #1890ff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;

  &::before {
    content: "⌛";
    margin-right: 8px;
    font-size: 18px;
  }
}

.error-message {
  padding: 12px 20px;
  background-color: #fff1f0;
  color: #ff4d4f;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;

  &::before {
    content: "⚠️";
    margin-right: 8px;
  }
}